using System;

namespace CKY.AgentPlatform.ModelConfigs.Dto
{
    /// <summary>
    /// 模型配置测试结果DTO
    /// </summary>
    public class ModelConfigTestResultDto
    {
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool Success { get; set; }

        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; } = string.Empty;

        /// <summary>
        /// 响应时间（毫秒）
        /// </summary>
        public long ResponseTime { get; set; }

        /// <summary>
        /// 错误详情
        /// </summary>
        public string? Error { get; set; }

        /// <summary>
        /// 测试时间
        /// </summary>
        public DateTime TestTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 模型响应示例
        /// </summary>
        public string? SampleResponse { get; set; }

        /// <summary>
        /// 连接状态
        /// </summary>
        public string ConnectionStatus { get; set; } = "Unknown";

        /// <summary>
        /// 延迟信息
        /// </summary>
        public Dictionary<string, long> LatencyInfo { get; set; } = new();
    }
}